import Layout from '@/layout/Layout';

const organRouter = {
  path: '/organ',
  component: Layout,
  redirect: 'noredirect',
  name: '开放管理',
  meta: {
    title: '开放管理',
    icon: 'fa-handshake-o',
  },
  children: [
    {
      path: 'organAuthManagement',
      component: () => import('@/views/organ/OrganAuthManagement'),
      name: 'OrganAuthManagement',
      meta: { title: '授权管理', cache: true },
    },
    {
      path: 'programManagement',
      component: () => import('@/views/organ/program/ProgramManagement'),
      name: 'ProgramManagement',
      meta: { title: '应用管理', cache: true },
    },
    {
      path: 'factoryManagement',
      component: () => import('@/views/organ/factory/FactoryManagement'),
      name: 'FactoryManagement',
      meta: { title: '厂家管理', cache: true },
    },
    {
      path: 'softwareManagement',
      component: () => import('@/views/organ/softwareUpdate/SoftwareManagement'),
      name: 'SoftwareManagement',
      meta: { title: '软件升级', cache: true },
    },
  ],
};

export default organRouter;
